/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package stis.statpro.ibs.view;

import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JTextField;

/**
 *
 * @author habib <imamhabibpamungkas@gmail.com>
 */
public class PanelModify extends javax.swing.JPanel {

    /**
     * Creates new form PanelModify
     */
    public PanelModify() {
        initComponents();
    }

    public void addListenerModify(ActionListener l){
        buttonModify.addActionListener(l);
    }

    public void addListenerBatal(ActionListener l){
        buttonBatal.addActionListener(l);
    }
    
    public JTextField getTextKip() {
        return textKip;
    }

    public JButton getButtonModify() {
        return buttonModify;
    }
    
    
    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        textKip = new javax.swing.JTextField();
        buttonModify = new javax.swing.JButton();
        buttonBatal = new javax.swing.JButton();

        jLabel1.setText("Masukkan No KIP yang akan di update :");
        add(jLabel1);

        textKip.setMinimumSize(new java.awt.Dimension(50, 20));
        textKip.setPreferredSize(new java.awt.Dimension(50, 20));
        add(textKip);

        buttonModify.setText("Modify");
        add(buttonModify);

        buttonBatal.setText("Batal");
        add(buttonBatal);
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton buttonBatal;
    private javax.swing.JButton buttonModify;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JTextField textKip;
    // End of variables declaration//GEN-END:variables
}
